#include "link_stack.h"

int main(int argc, char *argv[])
{
    stack *S = NULL;

    stack_create(&S);
    stack_push(S, 1000);
    stack_push(S, 2000);
    stack_push(S, 3000);

    link_stack_empty(&S);

    printf("pop:%d\n", stack_pop(S));
    printf("top:%d\n", link_stack_top(S));
    printf("pop:%d\n", stack_pop(S));
    printf("top:%d\n", link_stack_top(S));
    printf("pop:%d\n", stack_pop(S));
    printf("top:%d\n", link_stack_top(S));

    return 0;
}
